﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class DeliveryRobot:Robot
    {
        private string hours;
        public string Hours { get; set; }
        public DeliveryRobot(string hours,string name) : base(name)
        {
            this.hours = hours;
            this.Name = name;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人，还需要{1}小时", base.Name, this.hours); ;
        }
    }
}
